package com.dhcy.mqtt.par.ht;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;


@Data
@ApiModel(value = "接收设备数据新增修改", reference = "接收设备数据新增修改")
public class RevEquipmentDataAddPar {

    @ApiModelProperty(value = "设备数据id", dataType = "Integer ", example = "")
    private Integer id;
    @NotBlank(message = "设备名称不能为空")
    @ApiModelProperty(value = "设备名称", dataType = "String ", example = "")
    private String name;
    @NotBlank(message = "设备编码不能为空")
    @ApiModelProperty(value = "设备编码", dataType = "String ", example = "")
    private String code;
    @NotBlank(message = "设备编号不能为空")
    @ApiModelProperty(value = "设备编号", dataType = "String ", example = "")
    private String number;
    /**
     * 设备状态(氚,中子,伽马 -> 01:正常 02:超阈值;
     * 气溶胶 -> 01:测量中 02:空闲 03:纸少于10% 04:缺纸 05:超阈值),
     */
    //todo
    @NotBlank(message = "设备状态码不能为空")
    @ApiModelProperty(value = "设备状态码", dataType = "String ", example = "")
    private String statusCode;
    @NotBlank(message = "设备状态值不能为空")
    @ApiModelProperty(value = "设备状态值", dataType = "String ", example = "")
    private String statusValue;
    @ApiModelProperty(value = "测量值", dataType = "String ", example = "")
    private String value;
    /**
     * 铀浓度(气溶胶参数)
     */
    @ApiModelProperty(value = "铀浓度", dataType = "String ", example = "")
    private String uValue;
    /**
     * 钚浓度(气溶胶参数)
     */
    @ApiModelProperty(value = "钚浓度", dataType = "String ", example = "")
    private String puValue;

    @NotBlank(message = "设备创建时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", dataType = "Date ", example = "")
    private Date createTime;


}
